<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   <%@ taglib  
	uri="http://java.sun.com/jsp/jstl/core"
	prefix="c"%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>搜索</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
</style>
</head>
<body>
<div id="contains">
<form class="from-horizontal" role="form">
<div class="form-group">
<label for="item_id" class="col-sm-2 control-laber">运件编号</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="item_id" id="item_id" placeholder="请输入运件编号">
</div>
</div>
<div class="form-group">
<label for="item_intime" class="col-sm-2 control-laber">入库时间</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="item_intime" id="item_intime" placeholder="请输入入库时间">
</div>
</div>
<div class="form-group">
<label for="item_intime" class="col-sm-2 control-laber">出库时间</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="item_outtime" id="item_outtime" placeholder="请输入出库时间">
</div>
</div>
<div class="form-group">
<label for="flyman_id" class="col-sm-2 control-laber">快递员编号</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="flyman_id" id="flyman_id" placeholder="请输入快递员编号">
</div>
</div>
<div class="form-group">
<label for="item_status" class="col-sm-2 control-laber">运件状态</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="item_status" id="item_status" placeholder="请输入运件状态">
</div>
</div>
<div class=botton-group>
<div class="col-sm-offser-2 col-sm-10" id="ok" style="text-align:center">
<button type="button" class="btn btn-default" onclick="ok()">确定</button>
</div>

</div>
</form>
</div>
</body>
<script type="text/javascript" src="bootstrap/js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript">
function ok(){
	var item_id=jQuery("#item_id").val();
	var item_intime=jQuery("#item_intime").val();
	var item_outtime=jQuery("#item_outtime").val();
	var flyman_id=jQuery("#flyman_id").val();
	var item_status=jQuery("#item_status").val();
	
	 jQuery.post("find_item_Servlet",
			 {"item_id":item_id,"item_intime":item_intime,"item_outtime":item_intime,"flyman_id":flyman_id,"item_status":item_status},
			function(){ 
window.open("controller_search.jsp","查询运件结果","height=600,width=1000,top=100,left=200,resizable=yes,location=yes,status=no,fullscreen=yes","replace=false");
			 }) 
	
	
 }
</script>
</html>